package org.luckyjourney.entity.booking.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderVO implements Serializable {

    private Long id;
    @ApiModelProperty("咨询师id")
    private Long userId;
    @ApiModelProperty("咨询师姓名")
    private String userName;
    @ApiModelProperty("订单号")
    private String ordersNumber;
    @ApiModelProperty("用户id")
    private Long regularId;
    @ApiModelProperty("用户姓名")
    private String regularName;
    @ApiModelProperty("付款方式")
    private String paymentMethods;
    @ApiModelProperty("退款方式")
    private String refundMethods;
    @ApiModelProperty("订单状态")
    private Integer status;
    @ApiModelProperty("支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime paymentTime;
    @ApiModelProperty("退款时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime refundTime;
    @ApiModelProperty("预约日期")
    private String planDate;

    @ApiModelProperty("预约时间")
    private String planTime;
    @ApiModelProperty("快照")
    private String snapshot;
    @ApiModelProperty("预约id")
    private Long bookingId;
    //订单取消时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime cancelTime;
    @ApiModelProperty("完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime finishTime;
    //订单取消原因
    private String cancelReason;
    @ApiModelProperty("订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    //支付价格
    private BigDecimal price;
    //原本价格
    private BigDecimal originallyPrice;


    // @ApiModelProperty("预约的类型")
    // private Long bookingId;
    private Long avatar;
    //头像
    private String a;

    @ApiModelProperty("服务方式")
    private String serviceMode;
    @ApiModelProperty("咨询类型id")
    private Long classifyId;


    private String type;

    @ApiModelProperty("服务方式")
    private Integer service;
}
